package com.example.demo.mapper;

import com.example.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2023-02-14
 * Time: 11:56
 */
@Mapper
public interface UserMapper {

    public UserInfo getUserByName(@Param("username") String username);

    public int add(@Param("username") String username,@Param("password") String password);

    public UserInfo getMyInfoByUid(@Param("uid") Integer uid);
}
